package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

/**
 * @author FCJ
 * @date 2020-01-10 19:57
 */
public interface PermissionDao {
    Set<Permission> findByRoleId(Integer id);
    public void add(Permission permission);

  public Page<Permission> selectByCondition(String queryString);

 public long findCountByCheckItemId(Integer id);

   public void deleteById(Integer id);

  public Permission findById(Integer id);

  public void edit(Permission permission);

   public List<Permission> findAll();
}
